package operator;

/**
 * @Author Miku
 * @Create 2021/2/3 14:43
 */
public class Demo04 {
    public static void main(String[] args) {
        //++  --   自增，自减   一元运算符
        int a = 3;
        //执行完代码后先给b赋值，再自增
        int b = a++;
        //执行代码前先自增，再给c赋值
        int c = ++a;

        System.out.println(a);
        System.out.println(b);
        System.out.println(c);

        //幂运算 2^3   2*2*2 = 8
        double pow = Math.pow(2, 3);
        System.out.println(pow);
    }
}
